package com.ruoyi.business.service.impl;

import java.util.Collections;
import java.util.List;

import com.ruoyi.business.vo.EquipmentCollectParameterVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.EquipmentCollectParameterMapper;
import com.ruoyi.business.domain.EquipmentCollectParameter;
import com.ruoyi.business.service.IEquipmentCollectParameterService;

/**
 * 设备采集参数设置Service业务层处理
 *
 * @author DL
 * @date 2025-06-23
 */
@Service
public class EquipmentCollectParameterServiceImpl implements IEquipmentCollectParameterService
{
    @Autowired
    private EquipmentCollectParameterMapper equipmentCollectParameterMapper;

    /**
     * 查询设备采集参数设置
     *
     * @param equipmentId 设备采集参数设置主键
     * @return 设备采集参数设置
     */
    @Override
    public EquipmentCollectParameter selectEquipmentCollectParameterByEquipmentId(String equipmentId)
    {
        return equipmentCollectParameterMapper.selectEquipmentCollectParameterByEquipmentId(equipmentId);
    }

    /**
     * 查询设备采集参数设置列表
     *
     * @param equipmentCollectParameter 设备采集参数设置
     * @return 设备采集参数设置
     */
    @Override
    public List<EquipmentCollectParameter> selectEquipmentCollectParameterList(EquipmentCollectParameter equipmentCollectParameter)
    {
        return equipmentCollectParameterMapper.selectEquipmentCollectParameterList(equipmentCollectParameter);
    }

    /**
     * 新增设备采集参数设置
     *
     * @param equipmentCollectParameter 设备采集参数设置
     * @return 结果
     */
    @Override
    public int insertEquipmentCollectParameter(EquipmentCollectParameter equipmentCollectParameter)
    {
        return equipmentCollectParameterMapper.insertEquipmentCollectParameter(equipmentCollectParameter);
    }

    /**
     * 修改设备采集参数设置
     *
     * @param equipmentCollectParameter 设备采集参数设置
     * @return 结果
     */
    @Override
    public int updateEquipmentCollectParameter(EquipmentCollectParameter equipmentCollectParameter)
    {
        return equipmentCollectParameterMapper.updateEquipmentCollectParameter(equipmentCollectParameter);
    }

    /**
     * 批量删除设备采集参数设置
     *
     * @param equipmentIds 需要删除的设备采集参数设置主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentCollectParameterByEquipmentIds(String[] equipmentIds)
    {
        return equipmentCollectParameterMapper.deleteEquipmentCollectParameterByEquipmentIds(equipmentIds);
    }

    /**
     * 删除设备采集参数设置信息
     *
     * @param equipmentId 设备采集参数设置主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentCollectParameterByEquipmentId(String equipmentId)
    {
        return equipmentCollectParameterMapper.deleteEquipmentCollectParameterByEquipmentId(equipmentId);
    }

    @Override
    public List<EquipmentCollectParameterVo> selectCollectParameterListAndSon() {
        return  equipmentCollectParameterMapper.selectCollectParameterListAndSon();
    }
}
